<?php Yii::app()->clientScript->registerScript('info',"
    var jobid='$job->jobid';
        var dialogDone=false;
    ",CClientScript::POS_HEAD);?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/js/app/jobnotes.js',CClientScript::POS_BEGIN);?>

<div id="left-col">
    <?php 
    $this->renderPartial('/jobs/_side',array(
        'location'=>$job->location,
        'customer'=>$job->location->customer,
        'job'=>$job,
        'action'=>'other'
    ));
    
  
    ?>    
</div>

<div id="right-col">

    <div class="wrap">
        <div class="container">

            
            <div id="breadcrumb" style="display:none;"><span style="padding-left:10px;font-size:10px;color:#777777;" id="alsoviewing"></span></div>
            <div class="inside">

                <?php $this->renderPartial('/jobs/_view',array(
                    'model'=>$job,
                ));?>
                <div id="panel"></div>
                <ul id="tab" class="tabs tabs-with-summary">
                    <li class="active"><a href="#tabNote">Notes</a></li>
                    <li class=""><a href="#tabDocument">Documents</a></li>
                </ul>
                <div id="tabNote">
                    <br/>
                    <a href="javascript:void(0)" class="add-button" id="createNote">Add Note</a>
                    
                    <div id="notes-list" class="">
                        
                    </div>
                </div>
                <div id="tabDocument">
                    <br/>
                    <iframe id="downloadFrame" src="" style="display:none;"></iframe>
                    <a class="add-button" href='javascript:void(0)' id="createJobDocument">Add Document</a>
                    <div id="document-list">
                        
                    </div>
                </div>
                
              
            </div><!-- inside -->
        </div><!-- container -->
    </div><!-- wrap -->
    <?php $this->renderPartial('application.views.copyright'); ?>
</div> <!-- left-col -->